unit uStandardForm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, uBaseForm, cxLocalization;

type
  TfmStandard = class(TBaseForm)
    cxLocalizer1: TcxLocalizer;
    procedure FormCreate(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormKeyPress(Sender: TObject; var Key: Char);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fmStandard: TfmStandard;

implementation

{$R *.dfm}

procedure TfmStandard.FormCreate(Sender: TObject);
begin
  inherited;
  cxLocalizer1.Active := True;
  cxLocalizer1.Locale := 2052;
end;

procedure TfmStandard.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  inherited;
  Action := caFree;
end;

procedure TfmStandard.FormKeyPress(Sender: TObject; var Key: Char);
begin
  inherited;
  if (Key = #13) then
  begin
    begin
      Key := #0;
      Perform(WM_NEXTDLGCTL, 0, 0);
    end;
  end;
end;

end.
